package com.alisls.shequtao.service.goods.entity;

import com.alisls.shequtao.common.model.entity.BaseDO;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 商品分类表
 *
 * @author Ke Wang
 */
@TableName(value = "prd_category")
@Getter
@Setter
@ToString
public class CategoryDO extends BaseDO {

    @TableId
    private Long id;

    private Long parentId;

    private String categoryName;

    /**
     * 是否叶子节点
     */
    @TableField(value = "is_leaf")
    private Integer leaf;

    /**
     * 排序值
     */
    private Integer sort;

}
